package com.auto.sns.honour.dao.impl;

import java.util.List;
import java.util.Map;

import com.system.common.Page;
import com.auto.sns.honour.domain.SnsHonourUser;
import com.auto.sns.honour.dao.ISnsHonourUserDAO;
import com.system.util.PersistUtil;
import com.auto.sns.honour.sql.sqlid.SnsHonourUserSqlID;
/**
 * : t_auto_sns_honour_user
 * 
 * 
 * @author Gen
 */
public class SnsHonourUserDAOImpl implements ISnsHonourUserDAO{

	public SnsHonourUser insertSnsHonourUser(SnsHonourUser bean){
		return PersistUtil.insert(bean, SnsHonourUserSqlID.INSERT);
	}

	public boolean deleteSnsHonourUser(String shusGuid){
		PersistUtil.delete(shusGuid, SnsHonourUserSqlID.DELETE);
		return true;
	}	

	public SnsHonourUser updateSnsHonourUser(SnsHonourUser bean){
		return PersistUtil.update(bean, SnsHonourUserSqlID.UPDATE);
	}	

	public SnsHonourUser loadSnsHonourUser(String shusGuid){
		return PersistUtil.query(new SnsHonourUser().getClass(), shusGuid);
	}

	public List<SnsHonourUser> queryList(Map<String,Object> param,Page page){
		page.setCount(PersistUtil.countSpecial(param, SnsHonourUserSqlID.QUERY));
		return PersistUtil.querySpecial(param, SnsHonourUserSqlID.QUERY, page.getFullOrderBy(), page.getOffset(), page.getLimit());
	}

}
